﻿using System.Collections.Generic;

namespace FluentNH_DO.Entities
{
    //[Indexed 
    public class Contact
    {
        /// <summary>
        /// ID of Contact
        /// </summary>
        public virtual int Id
        { get; private set; }

        /// <summary>
        /// Name of Contact
        /// </summary>
        public virtual string Name
        { get; set; }

        /// <summary>
        /// List of ContactInfo registered to the Contact
        /// </summary>
        public virtual IList<ContactInfo> ContactInfos
        { get; set; }

        public Contact()
        {
            ContactInfos = new List<ContactInfo>();
        }

        public virtual void AddContactInfo(ContactInfo contactInfo)
        {
            ContactInfos.Add(contactInfo);
        }
    }
}
